package com.wmx.dubbocustomer.service.impl;

import com.wmx.dubbocustomer.service.OrderService;
import entity.resp.UserAddressResp;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;
import service.UserAddressService;

import java.util.List;

/**********************************
 * @author wmx
 * @date 2019/11/4 17:05
 * @description:
 * @version 1.0
 ************************************/
@Service
public class OrderServiceImpl implements OrderService {
    @Reference(loadbalance = "", validation = "true")
    UserAddressService userAddressService;

    @Override
    public List<UserAddressResp> queryUserAddressByUserId(String userId) {

        try {
            return userAddressService.queryUserAddressByUserId(userId);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
